<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CodeQuest | 个人在线评测平台</title>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;600&display=swap" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        :root {
            --primary-color: #2F3C7E;
            --secondary-color: #3C6E71;
            --accent-color: #70AE6E;
            --light-bg: #f8f9fa;
            --dark-text: #2d3436;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            min-height: 100vh;
            color: var(--dark-text);
            line-height: 1.6;
        }

        /* 导航栏样式 */
        .navbar {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            padding: 0 8%;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        .navbar-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 70px;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .navbar a {
            color: var(--dark-text);
            text-decoration: none;
            font-weight: 500;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
        }

        .navbar a:hover {
            color: var(--primary-color);
            transform: translateY(-2px);
        }

        .navbar a:hover::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 2px;
            background: var(--primary-color);
        }

        .login-btn {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white !important;
            padding: 0.6rem 1.8rem !important;
            border-radius: 30px !important;
            transition: transform 0.3s, box-shadow 0.3s !important;
        }

        .login-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(47, 60, 126, 0.3);
        }

        /* 内容区域 */
        .hero-section {
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 0 5%;
            text-align: center;
            margin-top: -70px;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            /* 标准属性在前 */
            background-clip: text;
            /* 浏览器前缀在后 */
            -webkit-background-clip: text;
            /* 文字颜色处理 */
            color: transparent;
            -webkit-text-fill-color: transparent;
            line-height: 1.2;
        }

        .hero-subtitle {
            font-size: 1.4rem;
            color: #636e72;
            max-width: 600px;
            margin-bottom: 2.5rem;
        }

        .cta-button {
            display: inline-flex;
            align-items: center;
            padding: 1.2rem 2.5rem;
            font-size: 1.1rem;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white !important;
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(47, 60, 126, 0.3);
            letter-spacing: 1px;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .navbar {
                padding: 0 5%;
            }

            .hero-title {
                font-size: 2.5rem;
            }

            .hero-subtitle {
                font-size: 1.1rem;
            }

            .nav-links {
                gap: 1rem;
            }

            .navbar a {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {
            .navbar-inner {
                flex-direction: column;
                height: auto;
                padding: 1rem 0;
            }

            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
                margin-top: 1rem;
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <nav class="navbar">
            <div class="navbar-inner">
                <div class="nav-links">
                    <a href="#">首页</a>
                    <a href="/all_questions">题库</a>
                    <a href="#">竞赛</a>
                    <a href="#">讨论</a>
                </div>
                <a class="login-btn" href="#">登录</a>
            </div>
        </nav>

        <main class="hero-section">
            <h1 class="hero-title">欢迎来到 CodeQuest</h1>
            <p class="hero-subtitle">这里是个人打造的在线编程评测平台，提供算法题库、竞赛系统和开发者社区</p>
            <a href="/all_questions" class="cta-button">立即开始编程挑战 →</a>
        </main>
    </div>
</body>

</html>